import request from '@/utils/request'

// 查询师生沟通列表
export function listSsgt(query) {
  return request({
    url: '/sxgc/ssgt/list',
    method: 'get',
    params: query
  })
}

// 查询师生沟通详细
export function getSsgt(zxId) {
  return request({
    url: '/sxgc/ssgt/' + zxId,
    method: 'get'
  })
}

// 新增师生沟通
export function addSsgt(data) {
  return request({
    url: '/sxgc/ssgt',
    method: 'post',
    data: data
  })
}

// 修改师生沟通
export function updateSsgt(data) {
  return request({
    url: '/sxgc/ssgt',
    method: 'put',
    data: data
  })
}

// 删除师生沟通
export function delSsgt(zxId) {
  return request({
    url: '/sxgc/ssgt/' + zxId,
    method: 'delete'
  })
}
